import 'package:flutter/material.dart';
import 'package:labcloud_app/pages/index.dart';
import 'package:labcloud_app/pages/product/product_detail.dart';
import '../pages/product/home.dart';
import '../pages/search.dart';
import '../pages/message.dart';
import '../pages/uaa/profile.dart';

/// 应用路由配置
class AppRoutes {
  /// 路由表
  static final Map<String, WidgetBuilder> routes = {
    '/home': (context) => const Home(),
    '/search': (context) => const Search(),
    '/message': (context) => const Message(),
    '/profile': (context) => const Profile(),
    '/product_detail': (context) => const ProductDetail(),
    '/main': (context) => const Index(),
  };

  /// 初始路由
  static const String initialRoute = '/main';

  /// 底部导航栏路由列表
  static const List<String> bottomNavRoutes = [
    '/home',
    '/search',
    '/message',
    '/profile',
  ];
}